package com.teemo.dp.singleton.demo10;

/**
 * @author Teemo
 */
public class Demo {
    public static void main(String[] args) throws Exception{
        Washer washer = Washer.getInstance();
        Washer washer1 = Washer.getInstance();
        System.out.println(washer);
        System.out.println(washer1);

        Washer clone = (Washer) washer.clone();
        clone.wash();
        System.out.println(clone);

    }
}
